Optimal. Leaf size=207 \[ \frac {\tanh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f}-\frac {\coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f}+\frac {\text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right )}{a f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {\text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} E\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right )}{a f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.20, antiderivative size = 207, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {3196, 475, 422, 418, 492, 411} \[ \frac {\tanh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f}-\frac {\coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f}+\frac {\text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right )}{a f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {\text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} E\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right )}{a f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 411
Rule 418
Rule 422
Rule 475
Rule 492
Rule 3196
Rubi steps
\begin {align*} \int \frac {\coth ^2(e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}} \, dx &=\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \operatorname {Subst}\left (\int \frac {\sqrt {1+x^2}}{x^2 \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{f}\\ &=-\frac {\coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f}+\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \operatorname {Subst}\left (\int \frac {\sqrt {a+b x^2}}{\sqrt {1+x^2}} \, dx,x,\sinh (e+f x)\right )}{a f}\\ &=-\frac {\coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f}+\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{f}+\frac {\left (b \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \operatorname {Subst}\left (\int \frac {x^2}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{a f}\\ &=-\frac {\coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f}+\frac {F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {\sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{a f}-\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \operatorname {Subst}\left (\int \frac {\sqrt {a+b x^2}}{\left (1+x^2\right )^{3/2}} \, dx,x,\sinh (e+f x)\right )}{a f}\\ &=-\frac {\coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f}-\frac {E\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{a f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {\sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{a f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.40, size = 105, normalized size = 0.51 \[ \frac {\sqrt {2} \coth (e+f x) (-2 a-b \cosh (2 (e+f x))+b)-2 i a \sqrt {\frac {2 a+b \cosh (2 (e+f x))-b}{a}} E\left (i (e+f x)\left |\frac {b}{a}\right .\right )}{2 a f \sqrt {2 a+b \cosh (2 (e+f x))-b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.49, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\coth \left (f x + e\right )^{2}}{\sqrt {b \sinh \left (f x + e\right )^{2} + a}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.27, size = 217, normalized size = 1.05 \[ -\frac {-\sinh \left (f x +e \right ) \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \sqrt {\frac {b \left (\cosh ^{2}\left (f x +e \right )\right )}{a}+\frac {a -b}{a}}\, \left (a \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right )-b \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right )+b \EllipticE \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right )\right )+\sqrt {-\frac {b}{a}}\, b \left (\cosh ^{4}\left (f x +e \right )\right )+\left (\sqrt {-\frac {b}{a}}\, a -\sqrt {-\frac {b}{a}}\, b \right ) \left (\cosh ^{2}\left (f x +e \right )\right )}{\sqrt {-\frac {b}{a}}\, a \sinh \left (f x +e \right ) \cosh \left (f x +e \right ) \sqrt {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}\, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\coth \left (f x + e\right )^{2}}{\sqrt {b \sinh \left (f x + e\right )^{2} + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\mathrm {coth}\left (e+f\,x\right )}^2}{\sqrt {b\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\coth ^{2}{\left (e + f x \right )}}{\sqrt {a + b \sinh ^{2}{\left (e + f x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________